package com.A21.GuoSai.demo.service_entity.utils;

import java.lang.reflect.Field;

public class FieldUtils {
    public static Object getDeclareField(Object obj,String field) throws NoSuchFieldException, IllegalAccessException {
        Field jobRunFactory=obj.getClass().getDeclaredField(field);
        jobRunFactory.setAccessible(true);
        return jobRunFactory.get(obj);
    }
}
